package top.lishuoboy.hibernate.validator.a3_1_1;

import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.Negative;
import javax.validation.constraints.Size;

@NoArgsConstructor
public class Car {

    public Car(@Min(10) @Negative Integer id, @Size(min = 2, max = 60) String manufacturer) {
    }

    /** 不支持 static 方法 校验 */
    public void rentCar(@Min(10) @Negative Integer id, @Size(min = 2, max = 60) String manufacturer) {
    }
}